# pip install BeautifulSoup4
from bs4 import BeautifulSoup

html_doc = """<!DOCTYPE html><html lang="zh-cmn-Hans" class="ua-windows ua-webkit book-new-nav"><head>  <meta 
http-equiv="Content-Type" content="text/html; charset=utf-8">  <title>豆子芝麻茶的笔记(35)</title>  <script>!function(e){var 
o=function(o,n,t){var c,i,r=new Date;n=n||30,t=t||"/",r.setTime(r.getTime()+24*n*60*60*1e3),
c="; expires="+r.toGMTString();for(i in o)e.cookie=i+"="+o[i]+c+"; path="+t},n=function(o){var n,t,c,i=o+"=",
r=e.cookie.split(";");for(t=0,c=r.length;t<c;t++)if(n=r[t].replace(/^\s+|\s+$/g,""),0==n.indexOf(i))return 
n.substring(i.length,n.length).replace(/\"/g,"");return null},t=e.write,c={"douban.com":1,"douban.fm":1,
"google.com":1,"google.cn":1,"googleapis.com":1,"gmaptiles.co.kr":1,"gstatic.com":1,"gstatic.cn":1,
"google-analytics.com":1,"googleadservices.com":1},i=function(e,o){var n=new Image;n.onload=function(){},
n.src="https://www.douban.com/j/except_report?kind=ra022&reason="+encodeURIComponent(
e)+"&environment="+encodeURIComponent(o)},r=function(o){try{t.call(e,o)}catch(e){t(o)}},a=/<script.*?src\=["']?([
^"'\s>]+)/gi,g=/http:\/\/(.+?)\.([^\/]+).+/i;e.writeln=e.write=function(e){var t,l=a.exec(e);return l&&(t=g.exec(l[
1]))?c[t[2]]?void r(e):void("tqs"!==n("hj")&&(i(l[1],location.href),o({hj:"tqs"},1),setTimeout(function(){
location.replace(location.href)},50))):void r(e)}}(document);</script>    <meta http-equiv="Pragma" 
content="no-cache">  <meta http-equiv="Expires" content="Sun, 6 Mar 2005 01:00:00 GMT">    <script>var _head_start = 
new Date();</script>    <link href="https://img1.doubanio.com/f/vendors/02814fbb5bee25484516bd0a642af695f7ec5a83/css
/douban.css" rel="stylesheet" type="text/css">  <link 
href="https://img9.doubanio.com/cuphead/book-static/common/master.8dbb6.css" rel="stylesheet" type="text/css">  <link 
href="https://img3.doubanio.com/cuphead/book-static/base/init.e399f.css" rel="stylesheet">  <style 
type="text/css"></style>  <script src="https://img1.doubanio.com/f/vendors/0511abe9863c2ea7084efa7e24d1d86c5b3974f1
/js/jquery-1.10.2.min.js"></script>  <script 
src="https://img1.doubanio.com/f/vendors/aa9559674f2476cdc16f755b3cdc4ebc478db669/js/douban.js"></script>  <script 
src="https://img3.doubanio.com/cuphead/book-static/common/master.307d7.js"></script>      <link 
href="https://img1.doubanio.com/f/vendors/b6814ac068f705a1366083b58858a468706a60dc/css/lib/jquery.snippet.css" 
type="text/css" rel="stylesheet">  <link 
href="https://img1.doubanio.com/f/vendors/0035bb2f83e2cba49ecf634fed57f9ff1bbd0d09/css/ui/dialog.css" type="text/css" 
rel="stylesheet">  <script type="text/javascript" 
src="https://img1.doubanio.com/f/vendors/7965e09b0065d26bfd22d390de956c22a48b9008/js/lib/jquery.snippet.js"></script> 
 <meta name="mobile-agent" content="format=html5; url=https://m.douban.com/book/subject/36560856/annotation"/>  
 <script>  </script>  <!-- COLLECTED CSS -->  <link rel="shortcut icon" href="https://img1.doubanio.com/favicon.ico" 
 type="image/x-icon"></head><body>      <script>var _body_start = new Date();</script>          <link 
 href="//img3.doubanio.com/dae/accounts/resources/ded47ae/shire/bundle.css" rel="stylesheet" type="text/css"><div 
 id="db-global-nav" class="global-nav">  <div class="bd">    <div class="top-nav-info">  <a 
 href="https://accounts.douban.com/passport/login?source=book" class="nav-login" rel="nofollow">登录/注册</a></div>    
 <div class="top-nav-doubanapp">  <a href="https://www.douban.com/doubanapp/app?channel=top-nav" 
 class="lnk-doubanapp">下载豆瓣客户端</a>  <div id="doubanapp-tip">    <a 
 href="https://www.douban.com/doubanapp/app?channel=qipao" class="tip-link">豆瓣 <span class="version">6.0</span> 
 全新发布</a>    <a href="javascript: void 0;" class="tip-close">×</a>  </div>  <div id="top-nav-appintro" 
 class="more-items">    <p class="appintro-title">豆瓣</p>    <p class="qrcode">扫码直接下载</p>    <div class="download">    
   <a href="https://www.douban.com/doubanapp/redirect?channel=top-nav&direct_dl=1&download=iOS">iPhone</a>      
   <span>·</span>      <a href="https://www.douban.com/doubanapp/redirect?channel=top-nav&direct_dl=1&download
   =Android" class="download-android">Android</a>    </div>  </div></div><div class="global-nav-items">  <ul>    <li 
   class="">      <a href="https://www.douban.com" target="_blank" data-moreurl-dict="{
   &quot;from&quot;:&quot;top-nav-click-main&quot;,&quot;uid&quot;:&quot;0&quot;}">豆瓣</a>    </li>    <li class="on"> 
        <a href="https://book.douban.com"  data-moreurl-dict="{&quot;from&quot;:&quot;top-nav-click-book&quot;,
        &quot;uid&quot;:&quot;0&quot;}">读书</a>    </li>    <li class="">      <a href="https://movie.douban.com" 
        target="_blank" data-moreurl-dict="{&quot;from&quot;:&quot;top-nav-click-movie&quot;,
        &quot;uid&quot;:&quot;0&quot;}">电影</a>    </li>    <li class="">      <a href="https://music.douban.com" 
        target="_blank" data-moreurl-dict="{&quot;from&quot;:&quot;top-nav-click-music&quot;,
        &quot;uid&quot;:&quot;0&quot;}">音乐</a>    </li>    <li class="">      <a 
        href="https://www.douban.com/location" target="_blank" data-moreurl-dict="{
        &quot;from&quot;:&quot;top-nav-click-location&quot;,&quot;uid&quot;:&quot;0&quot;}">同城</a>    </li>    <li 
        class="">      <a href="https://www.douban.com/group" target="_blank" data-moreurl-dict="{
        &quot;from&quot;:&quot;top-nav-click-group&quot;,&quot;uid&quot;:&quot;0&quot;}">小组</a>    </li>    <li 
        class="">      <a href="https://read.douban.com&#47;?dcs=top-nav&amp;dcm=douban" target="_blank" 
        data-moreurl-dict="{&quot;from&quot;:&quot;top-nav-click-read&quot;,&quot;uid&quot;:&quot;0&quot;}">阅读</a>    
        </li>    <li class="">      <a href="https://fm.douban.com&#47;?from_=shire_top_nav" target="_blank" 
        data-moreurl-dict="{&quot;from&quot;:&quot;top-nav-click-fm&quot;,&quot;uid&quot;:&quot;0&quot;}">FM</a>    
        </li>    <li class="">      <a href="https://time.douban.com&#47;?dt_time_source=douban-web_top_nav" 
        target="_blank" data-moreurl-dict="{&quot;from&quot;:&quot;top-nav-click-time&quot;,
        &quot;uid&quot;:&quot;0&quot;}">时间</a>    </li>    <li class="">      <a 
        href="https://market.douban.com&#47;?utm_campaign=douban_top_nav&amp;utm_source=douban&amp;utm_medium=pc_web" 
        target="_blank" data-moreurl-dict="{&quot;from&quot;:&quot;top-nav-click-market&quot;,
        &quot;uid&quot;:&quot;0&quot;}">豆品</a>    </li>  </ul></div>  </div></div><div id="db-nav-book" class="nav">  
        <div class="nav-wrap">  <div class="nav-primary">    <div class="nav-logo">      <a 
        href="https:&#47;&#47;book.douban.com">豆瓣读书</a>    </div>    <div class="nav-search">      <form 
        action="https:&#47;&#47;search.douban.com&#47;book/subject_search" method="get">        <fieldset>          
        <legend>搜索：</legend>          <label for="inp-query">          </label>          <div class="inp"><input 
        id="inp-query" name="search_text" size="22" maxlength="60" placeholder="书名、作者、ISBN" value=""></div>          
        <div class="inp-btn"><input type="submit" value="搜索"></div>          <input type="hidden" name="cat" 
        value="1001" />        </fieldset>      </form>    </div>  </div>  </div>  <div class="nav-secondary"><div 
        class="nav-items">  <ul>    <li    ><a href="https://book.douban.com/cart/"     >购书单</a>    </li>    <li    
        ><a href="https://read.douban.com/ebooks/?dcs=book-nav&dcm=douban"            target="_blank"     >电子图书</a>   
         </li>    <li    ><a href="https://market.douban.com/book?utm_campaign=book_nav_freyr&utm_source=douban
         &utm_medium=pc_web"     >豆瓣书店</a>    </li>    <li    ><a 
         href="https://book.douban.com/annual/2023/?fullscreen=1&source=navigation"            target="_blank"     
         >2023年度榜单</a>    </li>    <li    ><a 
         href="https://c9.douban.com/app/standbyme-2023/?autorotate=false&fullscreen=true&hidenav=true
         &monitor_screenshot=true&source=web_navigation"            target="_blank"     >2023年度报告</a>    </li>    <li 
                  class=" book-cart"    ><a 
                  href="https://market.douban.com/cart/?biz_type=book&utm_campaign=book_nav_cart&utm_source=douban
                  &utm_medium=pc_web"            target="_blank"     >购物车</a>    </li>  </ul></div>    <a 
                  href="https://book.douban.com/annual/2023/?fullscreen=1&source=book_navigation" 
                  class="bookannual"></a>  </div></div>    <div id="wrapper">       <div id="content">    
                  <h1>豆子芝麻茶的笔记(35)</h1>    <div class="grid-16-8 clearfix">      <div class="article"><div class="mod 
                  reading-notes">    <div class="bd">            <a class="redbutt j a_show_login rr" 
                  href="https://www.douban.com/register?reason=annotate" rel="nofollow">                <span> 我来写笔记 
                  </span>            </a>        <h2 class="green_tab clearfix">          <a href="?sort=rank" 
                  class="on" id="by_rank" ><span>按有用程度</span></a>          <a href="?sort=page"  id="by_page" 
                  ><span>按页码先后</span></a>          <a href="?sort=time"  id="by_time" ><span>最新笔记</span></a>        
                  </h2>          <ul class="comments by_rank" >            <li class="ctsh clearfix" 
                  data-cid="129253204">        <div class="ilst">          <a 
                  href="https://www.douban.com/people/lainyung/">            <img 
                  src="https://img9.doubanio.com/icon/up1166692-25.jpg" width="48" height="48" alt="闻夕felicity" 
                  class="" />          </a>        </div>        <div class="con">          <div class="nlst">        
                      <h3>              <div class="note-toggle rr">                <a 
                      href="https://book.douban.com/annotation/129253204/" class="note-unfolder">展开</a>               
                       <a href="javascript:void(0);" class="note-folder">收起</a>              </div>              <a 
                       href="https://book.douban.com/annotation/129253204/" class="">胞兄</a></h3>          </div>      
                           <div class="clst">            <p class="user"><a 
                           href="https://www.douban.com/people/lainyung/" class=" " title="闻夕felicity">闻夕felicity</a> 
                                          (此时正是修行时)                              <span class="allstar40" 
                                          title="推荐"></span>            </p>            <div class="reading-note" 
                                          data-cid="129253204">              <div class="short">                      
                                                      <span 
                                                      class="">世间没有什么因果报应。许多人只能默默走着善良而不幸的路，最终用淡淡的自嘲或彻底的沉默将人世间的万种无奈都藏进记忆。</span>                  &nbsp;&nbsp;<a href="https://book.douban.com/annotation/129253204/">(<span class="">2回应</span>)</a>                <p class="pl">                  <span class="">2023-11-06 23:47:43</span>                    &nbsp;&nbsp;<span class="">5人喜欢</span>                </p>              </div>            </div>          </div>        </div>      </li>            <li class="ctsh clearfix" data-cid="130132827">        <div class="ilst">          <a href="https://www.douban.com/people/xiangnongmuou/">            <img src="https://img1.doubanio.com/icon/up53546090-8.jpg" width="48" height="48" alt="Mehua-Z" class="" />          </a>        </div>        <div class="con">          <div class="nlst">            <h3>              <div class="note-toggle rr">                <a href="https://book.douban.com/annotation/130132827/" class="note-unfolder">展开</a>                <a href="javascript:void(0);" class="note-folder">收起</a>              </div>              <a href="https://book.douban.com/annotation/130132827/" class="">妈妈</a></h3>          </div>          <div class="clst">            <p class="user"><a href="https://www.douban.com/people/xiangnongmuou/" class=" " title="Mehua-Z">Mehua-Z</a>                              <span class="allstar30" title="还行"></span>            </p>            <div class="reading-note" data-cid="130132827">              <div class="short">                                  <span class="">母慈九秩近龄，儿曹花甲古稀。廿余年侍奉堂前，然怎酬劬劳浩渺。恸跪灵前，只觉泪眼蒙昽，旋转天地； 娘尊一鹤晴空，吾等三荆枝树。数十载叨陪鲤对，又何能忘获恩怀。长忆昔时，但求依稀梦里，重诉亲情。</span>                <p class="pl">                  <span class="">2023-12-12 13:01:21</span>                    &nbsp;&nbsp;<span class="">3人喜欢</span>                </p>              </div>            </div>          </div>        </div>      </li>            <li class="ctsh clearfix" data-cid="128866249">        <div class="ilst">          <a href="https://www.douban.com/people/xyunyunshan/">            <img src="https://img9.doubanio.com/icon/up51258444-5.jpg" width="48" height="48" alt="几山" class="" />          </a>        </div>        <div class="con">          <div class="nlst">            <h3>              <div class="note-toggle rr">                <a href="https://book.douban.com/annotation/128866249/" class="note-unfolder">展开</a>                <a href="javascript:void(0);" class="note-folder">收起</a>              </div>              <a href="https://book.douban.com/annotation/128866249/" class="">婚姻和亲人</a></h3>          </div>          <div class="clst">            <p class="user"><a href="https://www.douban.com/people/xyunyunshan/" class=" " title="几山">几山</a>                (仰望星空)                              <span class="allstar40" title="推荐"></span>            </p>            <div class="reading-note" data-cid="128866249">              <div class="short">                                  <span class="">小小的册子，一个故事几页纸就翻完了，像人的一生一样简短。 结构更简单，上篇三个妇女的婚姻故事；下篇关于母亲、哥哥亲人的回忆。 上篇看到道理，下篇体会到亲情， 三个婚姻故事从短到长，跨度却从长到短。 第一个故事的跨度是小时候到老奶奶高龄的时候。第二个故事是青春靓丽的年轻到中年。第三个故事则是结婚几年的同事一段时间内的婚变过程。我最喜欢第三个故事，因为故事感更强。 故事中的人都受了时代的苦。受那个时候生...</span>                <p class="pl">                  <span class="">2023-10-22 19:01:35</span>                    &nbsp;&nbsp;<span class="">3人喜欢</span>                </p>              </div>            </div>          </div>        </div>      </li>            <li class="ctsh clearfix" data-cid="129458489">        <div class="ilst">          <a href="https://www.douban.com/people/52986618/">            <img src="https://img9.doubanio.com/icon/up52986618-16.jpg" width="48" height="48" alt="苔丝丝" class="" />          </a>        </div>        <div class="con">          <div class="nlst">            <h3>              <div class="note-toggle rr">                <a href="https://book.douban.com/annotation/129458489/" class="note-unfolder">展开</a>                <a href="javascript:void(0);" class="note-folder">收起</a>              </div>              <a href="https://book.douban.com/annotation/129458489/" class="">豆子芝麻茶</a></h3>          </div>          <div class="clst">            <p class="user"><a href="https://www.douban.com/people/52986618/" class=" " title="苔丝丝">苔丝丝</a>                (慢热的处女座。)                              <span class="allstar40" title="推荐"></span>            </p>            <div class="reading-note" data-cid="129458489">              <div class="short">                                  <span class="">在豆瓣上得知杨本芬老人出了新书《豆子芝麻茶》，迫不及待地下单，一口气读完。老人的书很是易读，特别有些口语化的表达和我的乡音如出一辙。开本小小的，讲的也是一如既往的身边小人物的故事。秦老太，小区捡垃圾的老人，好像看到书就能想起自家小区每天在垃圾桶中翻翻找找的老人，但我从来没有兴趣去了解她的生平，我只是把她看成了一个符号，一个脏乱差的代表，从没想过她也是立体的，是女儿，是妻子，更是她自己，更是她的...</span>                <p class="pl">                  <span class="">2023-11-15 10:51:16</span>                    &nbsp;&nbsp;<span class="">2人喜欢</span>                </p>              </div>            </div>          </div>        </div>      </li>            <li class="ctsh clearfix" data-cid="130698827">        <div class="ilst">          <a href="https://www.douban.com/people/145567831/">            <img src="https://img2.doubanio.com/icon/up145567831-1.jpg" width="48" height="48" alt="彳亍" class="" />          </a>        </div>        <div class="con">          <div class="nlst">            <h3>              <div class="note-toggle rr">                <a href="https://book.douban.com/annotation/130698827/" class="note-unfolder">展开</a>                <a href="javascript:void(0);" class="note-folder">收起</a>              </div>              <a href="https://book.douban.com/annotation/130698827/" class="">读第一至第四章</a></h3>          </div>          <div class="clst">            <p class="user"><a href="https://www.douban.com/people/145567831/" class=" " title="彳亍">彳亍</a>                              <span class="allstar50" title="力荐"></span>            </p>            <div class="reading-note" data-cid="130698827">              <div class="short">                                  <div class="ll" style="margin-right: 10px;">                    <a href="https://book.douban.com/annotation/130698827/"><img src="https://img2.doubanio.com/view/page_note/small/public/p130698827-1.jpg"></a>                  </div>                  <span class="">故事的伊始，我只是以为主人公是有一个不爱自己的母亲，不料父亲原也不爱。此处截图是父母离婚后刚跟父亲在一起时候还保有的天真写照。 之后的境遇越来越差。 直至年岁老到失去丈夫，才有自己的生活。捡破烂也是一种消遣。</span>                <p class="pl">                  <span class="">2024-01-05 15:13:48</span>                </p>              </div>            </div>          </div>        </div>      </li>            <li class="ctsh clearfix" data-cid="130669433">        <div class="ilst">          <a href="https://www.douban.com/people/yuzili/">            <img src="https://img9.doubanio.com/icon/up4689051-6.jpg" width="48" height="48" alt="聿子狸。" class="" />          </a>        </div>        <div class="con">          <div class="nlst">            <h3>              <div class="note-toggle rr">                <a href="https://book.douban.com/annotation/130669433/" class="note-unfolder">展开</a>                <a href="javascript:void(0);" class="note-folder">收起</a>              </div>              <a href="https://book.douban.com/annotation/130669433/" class="">妈妈</a></h3>          </div>          <div class="clst">            <p class="user"><a href="https://www.douban.com/people/yuzili/" class=" " title="聿子狸。">聿子狸。</a>                (人生只在一瞬间。)                              <span class="allstar50" title="力荐"></span>            </p>            <div class="reading-note" data-cid="130669433">              <div class="short">                                  <span class="">妈妈，这是我八十多岁重温有关你的往事，写下的无限依依。那是我们曾有过的温暖和记不清的悲凉，是拥有与告别了的一切。 对你的想念深嵌在我心中，回忆联翩而至。我椎心泣血写下我们共同度过的琐碎日子，那些事情让我的童年不无幸福，中年有着牵挂，老年有了回忆。我的人生似乎就是由这些编织而成。即使我到了耄耋之年，妈妈的谈笑、待人接物的方式，妈妈穿梭在每个房间的身影，都历历在目。我愿意把这些记下来，又重新和妈妈走...</span>                <p class="pl">                  <span class="">2024-01-04 09:33:40</span>                    &nbsp;&nbsp;<span class="">1人喜欢</span>                </p>              </div>            </div>          </div>        </div>      </li>            <li class="ctsh clearfix" data-cid="130703788">        <div class="ilst">          <a href="https://www.douban.com/people/135723837/">            <img src="https://img2.doubanio.com/icon/up135723837-1.jpg" width="48" height="48" alt="大脚丫" class="" />          </a>        </div>        <div class="con">          <div class="nlst">            <h3>              <div class="note-toggle rr">                <a href="https://book.douban.com/annotation/130703788/" class="note-unfolder">展开</a>                <a href="javascript:void(0);" class="note-folder">收起</a>              </div>              <a href="https://book.douban.com/annotation/130703788/" class="">上篇　过去的婚姻</a></h3>          </div>          <div class="clst">            <p class="user"><a href="https://www.douban.com/people/135723837/" class=" " title="大脚丫">大脚丫</a>                          </p>            <div class="reading-note" data-cid="130703788">              <div class="short">                                  <span class="">，“我只要我的小孩答应我一件事，我死了千万不要和老东西埋在一块。我再也不要和男的一起过日子了，。哪个都不要。在阳世算脱了身，在阴间千万莫搞在一起。就让我自己过自己的日子，谁我都不麻烦。 一个能用自己的双手为一个瘫痪的男人捧屎的善良乐观的人，却还担心自己会是别人的麻烦。自信点，女人没有了男人，就像鱼没有了自行车。</span>                <p class="pl">                  <span class="">2024-01-05 21:26:23</span>                </p>              </div>            </div>          </div>        </div>      </li>            <li class="ctsh clearfix" data-cid="130673252">        <div class="ilst">          <a href="https://www.douban.com/people/yuzili/">            <img src="https://img9.doubanio.com/icon/up4689051-6.jpg" width="48" height="48" alt="聿子狸。" class="" />          </a>        </div>        <div class="con">          <div class="nlst">            <h3>              <div class="note-toggle rr">                <a href="https://book.douban.com/annotation/130673252/" class="note-unfolder">展开</a>                <a href="javascript:void(0);" class="note-folder">收起</a>              </div>              <a href="https://book.douban.com/annotation/130673252/" class="">胞兄</a></h3>          </div>          <div class="clst">            <p class="user"><a href="https://www.douban.com/people/yuzili/" class=" " title="聿子狸。">聿子狸。</a>                (人生只在一瞬间。)                              <span class="allstar50" title="力荐"></span>            </p>            <div class="reading-note" data-cid="130673252">              <div class="short">                                  <span class="">世间没有什么因果报应。许多人只能默默走着善良而不幸的路，最终用淡淡的自嘲或彻底的沉默将人世间的万种无奈都藏进记忆。</span>                <p class="pl">                  <span class="">2024-01-04 12:50:33</span>                </p>              </div>            </div>          </div>        </div>      </li>            <li class="ctsh clearfix" data-cid="130673182">        <div class="ilst">          <a href="https://www.douban.com/people/yuzili/">            <img src="https://img9.doubanio.com/icon/up4689051-6.jpg" width="48" height="48" alt="聿子狸。" class="" />          </a>        </div>        <div class="con">          <div class="nlst">            <h3>              <div class="note-toggle rr">                <a href="https://book.douban.com/annotation/130673182/" class="note-unfolder">展开</a>                <a href="javascript:void(0);" class="note-folder">收起</a>              </div>              <a href="https://book.douban.com/annotation/130673182/" class="">胞兄</a></h3>          </div>          <div class="clst">            <p class="user"><a href="https://www.douban.com/people/yuzili/" class=" " title="聿子狸。">聿子狸。</a>                (人生只在一瞬间。)                              <span class="allstar50" title="力荐"></span>            </p>            <div class="reading-note" data-cid="130673182">              <div class="short">                                  <span class="">哥哥，死亡并不是离别的尽头，而是相逢的契机。我相信有灵魂，当我们在另一个世界相逢时，那会是一场永久的聚会。</span>                <p class="pl">                  <span class="">2024-01-04 12:45:36</span>                </p>              </div>            </div>          </div>        </div>      </li>            <li class="ctsh clearfix" data-cid="130657372">        <div class="ilst">          <a href="https://www.douban.com/people/152171557/">            <img src="https://img3.doubanio.com/icon/up152171557-32.jpg" width="48" height="48" alt="又升一坏心思儿" class="" />          </a>        </div>        <div class="con">          <div class="nlst">            <h3>              <div class="note-toggle rr">                <a href="https://book.douban.com/annotation/130657372/" class="note-unfolder">展开</a>                <a href="javascript:void(0);" class="note-folder">收起</a>              </div>              <a href="https://book.douban.com/annotation/130657372/" class="">#8</a></h3>          </div>          <div class="clst">            <p class="user"><a href="https://www.douban.com/people/152171557/" class=" " title="又升一坏心思儿">又升一坏心思儿</a>                (该来的人早就来了)                              <span class="allstar40" title="推荐"></span>            </p>            <div class="reading-note" data-cid="130657372">              <div class="short">                                  <span class="">我觉得我现在活得好，很自由。 如今的生活才是属于自己的生活，再没有人伤害我了。 如果伤害可以记载，从出生到现在，我的心早就千疮百孔了。</span>                <p class="pl">                  <span class="">2024-01-03 21:17:30</span>                </p>              </div>            </div>          </div>        </div>      </li>  </ul>      </div></div>                    <div class="paginator">        <span class="prev">            &lt;前页        </span>                                <span class="thispage">1</span>                            <a href="?sort=rank&amp;start=10" >2</a>                                    <a href="?sort=rank&amp;start=20" >3</a>                                    <a href="?sort=rank&amp;start=30" >4</a>                <span class="next">            <link rel="next" href="?sort=rank&amp;start=10"/>            <a href="?sort=rank&amp;start=10" >后页&gt;</a>        </span>        </div></div>      <div class="aside">        <div class="indent">  <p class="pl">笔记是你写在书页留白边上的内容；是你阅读中的批注、摘抄及随感。</p>  <p class="pl">笔记必须是自己所写，不欢迎转载。摘抄原文的部分应该进行特殊标明。</p></div><p class="pl"><a href="https://book.douban.com/subject/36560856/"><img width="100px" src="https://img3.doubanio.com/view/subject/m/public/s34669097.jpg" alt="豆子芝麻茶"/></a></p><p class="pl2">&gt;<a href="https://book.douban.com/subject/36560856/">豆子芝麻茶</a></p>      </div>      <div class="extra">              </div>    </div>  </div>          <div id="footer">    <span id="icp" class="fleft gray-link">    &copy; 2005－2024 douban.com, all rights reserved 北京豆网科技有限公司</span><a href="https://www.douban.com/hnypt/variformcyst.py" style="display: none;"></a><span class="fright">    <a href="https://www.douban.com/about">关于豆瓣</a>    · <a href="https://www.douban.com/jobs">在豆瓣工作</a>    · <a href="https://www.douban.com/about?topic=contactus">联系我们</a>    · <a href="https://www.douban.com/about/legal">法律声明</a>        · <a href="https://help.douban.com/?app=book" target="_blank">帮助中心</a>    · <a href="https://book.douban.com/library_invitation">图书馆合作</a>    · <a href="https://www.douban.com/doubanapp/">移动应用</a>    · <a href="https://www.douban.com/partner/">豆瓣广告</a></span>  </div>    </div></body></html>"""
# 解析网页 获得BeautifulSoup 对象
soup = BeautifulSoup(html_doc, 'html.parser')

# css选择器返回的是一组标签集合
listEl = soup.select(".comments.by_rank>li")
print(len(listEl))
for i in listEl:
    # 返回第一个标签
    name = i.select_one(".nlst>h3>a").text
    time_ = i.select_one(".pl>span").text
    print(f"name={name}   time={time_}")
